package com.shanshan.system.controller;


import com.shanshan.system.service.EduService;
import com.shanshan.system.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * -*- coding:utf-8 -*-
 *
 * @author 太阳偷渡青山
 * @software IntelliJ IDEA
 * @date 2022/10/13 22:31
 * @Description
 */
@RestController
@RequestMapping("/edu")
public class EduController {

    @Autowired
    private EduService eduService;

    /**
     * 找到所有
     *
     * @author 太阳偷渡青山
     * @return {@link Result}
     */
    @RequestMapping("/list")
    public Result findAll(){
        return eduService.findAll();
    }
}
